package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 文章
 *
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tb_article")
@Entity(module = "system", describe = "文章")
public class Article extends BaseEntity{

    @TableField
    @Column(value = "title", comment = "标题")
    private String title;

    @TableField
    @Column(value = "sub_title", comment = "副标题")
    private String subTitle;

    @TableField
    @Column(value = "content", comment = "文章内容",type =MySqlTypeConstant.LONGTEXT )
    private String content;

    @TableField
    @Column(value = "type_id", comment = "类型")
    private Long typeId;

    @TableField
    @Column(value = "keywords", comment = "关键字")
    private String keywords;

    @TableField
    @Column(value = "enable", comment = "是否发布")
    private boolean enable;

    @TableField
    @Column(value = "banner", comment = "头图片")
    private String banner;

    @TableField(fill = FieldFill.INSERT)
    @Column(value = "company_id", comment = "公司")
    private java.lang.Long companyId;

}
